package day6;

public class NewCard {
    Card[] cards = new Card[54];
    int index = 0;

    public NewCard() {
        // 初始化普通牌（52张）
        for (int rank = Card.RANK_3; rank <= Card.RANK_2; rank++) {
            for (int suit = Card.SUIT_HEITAO; suit <= Card.SUIT_FANGKUAI; suit++) {
                // 修复：参数顺序应该是 rank, suit
                cards[index++] = new Card(rank, suit);
            }
        }

        // 大小王 - 使用特殊值表示
        // 假设我们用 -1 表示大小王的花色，用特殊rank值表示大小王
        cards[index++] = new Card(Card.RANK_SMALL_JOKER, Card.SUIT_JOKER);
        cards[index++] = new Card(Card.RANK_BIG_JOKER, Card.SUIT_JOKER);
    }
}
